package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 存放发布的内容信息对象 contents_msg
 * 
 * @author whitedeer
 * @date 2024-08-15
 */
public class ContentsMsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 内容唯一标识符 */
    private Long contentId;

    /** 关联内容表的内容编号
关联用户表的用户编号
 */
    @Excel(name = "关联内容表的内容编号关联用户表的用户编号")
    private Long userId;

    /** 内容标题 */
    @Excel(name = "内容标题")
    private String title;

    /** 内容类型（文章/视频/音频） */
    @Excel(name = "内容类型", readConverterExp = "文=章/视频/音频")
    private String contentType;

    /** 内容正文
 */
    @Excel(name = "内容正文 ")
    private String body;

    /** 内容发布状态
 */
    @Excel(name = "内容发布状态 ")
    private String status;

    /** 内容创建时间
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "内容创建时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 内容更新时间
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "内容更新时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }
    public void setBody(String body) 
    {
        this.body = body;
    }

    public String getBody() 
    {
        return body;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contentId", getContentId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("contentType", getContentType())
            .append("body", getBody())
            .append("status", getStatus())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
